package com.e3.basdoc.currency.client;

import java.util.List;

import com.e3.basdoc.currency.model.CurrencyModel;
import com.e3.basdoc.currency.model.CurrencyQC;
import com.e3.web.core.client.RPCServiceHelper;
import com.e3.web.core.client.WebException;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;

public interface CurrencyRPCService extends RemoteService {
	public static class Util {

		private static CurrencyRPCServiceAsync instance;

		public static CurrencyRPCServiceAsync getInstance() {
			instance = (CurrencyRPCServiceAsync) RPCServiceHelper.getService(CurrencyRPCService.class.getName());
			if (instance == null) {
				instance = GWT.create(CurrencyRPCService.class);
				RPCServiceHelper.registerServiceEntryPoint(instance);
			}
			return instance;
		}

	}

	public CurrencyModel newCurrency(CurrencyModel model) throws WebException;
	
	public CurrencyModel modifyCurrency(CurrencyModel model) throws WebException;
	
	public List<CurrencyModel> getCurrencyByCondition(CurrencyQC currencyQC) throws WebException;
	
	public void deleteCurrencys(List<CurrencyModel> banks) throws WebException;

}
